<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	$name 			= Zendvn_Filter_Filter::filterContent($this->Item['name'],'filter');
	
	$email 			= Zendvn_Filter_Filter::filterContent($this->Item['email'],'filter');
	$phone 			= Zendvn_Filter_Filter::filterContent($this->Item['phone'],'filter');
	$address 		= Zendvn_Filter_Filter::filterContent($this->Item['address'],'filter');
	$comment 		= Zendvn_Filter_Filter::filterContent($this->Item['comment'],'filter');
	$id 			= $this->Item['id'];
	$created 		= $this->Item['created'];
	
	$img = ($this->Item['status'] == 'active') ? 'active.png' : 'inactive.png';
	$src = "images/small-icons/" . $img;
	$status = '<img src="' . $src . '" />';
					 
	$arrRow = array(
					array('label'=>$this->translate('Tên Khách Hàng'),'info'=>$name),	
					array('label'=>$this->translate('Email'),'info'=>$email),	
					array('label'=>$this->translate('Số Điện Thoại'),'info'=>$phone),	
					array('label'=>$this->translate('Địa Chỉ'),'info'=>$address),	
					array('label'=>$this->translate('Comment'),'info'=>$comment),	
					array('label'=>$this->translate('Ngày tṬo'),'info'=>$created),		
					array('label'=>$this->translate('Trạng Thái'),'info'=>$status),
				);
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
            	<fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
			
				<div class="div-table" style="margin-top:20px;">
					<h2  style="margin-top:20px;">Danh Sách Sản Phẩm</h2>
                <table width="100%" border="0" class="adminlist" style="margin-top:20px;">
                <thead>
                	 <?php 
                	 	$lblName 		= $this->cmsSort($this->translate('Tên'),$arrFilter,'i.name','DESC');
                	 	$lblStatus 		= $this->cmsSort($this->translate('Trạng thái'),$arrFilter,'i.status','DESC');
                	 	$lblControl		= $this->translate('Control');
                	 	$lblID 			= $this->cmsSort($this->translate('ID'),$arrFilter,'i.id','DESC');
 
                	 	require 'includes/row-item-thead.php';
                	 ?>
                     
                 </thead>
                 <tbody>
                 <?php 
                 	if(count($this->listItems)> 0){
                 		$i = 1;
                 		
                 		foreach ($this->listItems as $key => $val){
                 			$cssTR = 'odd';
                 			if($i%2==0) $cssTR = 'even';
							
                 			$name 			= Zendvn_Filter_Filter::filterContent($val['name'],'filter');
							
							$name_color 			= Zendvn_Filter_Filter::filterContent($val['name_color'],'filter');
							$name_size 			= Zendvn_Filter_Filter::filterContent($val['name_size'],'filter');
							$quantity 			= Zendvn_Filter_Filter::filterContent($val['quantity'],'filter');
                 			$price = number_format($val['price']);
                    		
                			require 'includes/row-item-tbody.php';
                			$i++;
                 		}
                 	}else{
                 		echo $this->render('empty.php');
                 	}
                  ?>
                  </tbody>
                  
                </table>

                </div>
                <div class="clr"></div>
                </fieldset>
            </div>
            <div class="clr"></div>
	</div>
</div>
